﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;

namespace Lamex.mMES.UI
{
    public partial class frmMES_AppManage : frmBaseChild
    {
        //DataTable dtDPT_App_Management = new DataTable();
        DataTable dtDPT_App_Management = null;

        public frmMES_AppManage()
        {
            InitializeComponent();
        }

        private void frmMES_AppManage_Load(object sender, EventArgs e)
        {
            dtDPT_App_Management = Lamex.Base.BaseBuildSql.GetDataTableBySql(" select * From DPT_App_Management");
            gridControl1.DataSource = dtDPT_App_Management;
            gridView1.BestFitColumns();
            gridView1.OptionsView.ColumnAutoWidth = false;
            gridView1.OptionsBehavior.Editable = false;
        }

        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            object selectValue = gridView1.GetFocusedValue();
            string strValue = selectValue.ToString();
            Help.ShowHelp(this, @"\\Tx-fs10\tx-fs1\LAMEX\MES\AppMgmt\Help\" + strValue + ".chm");
        }

    }
}